# -*- coding=utf8 -*-
from django.template import RequestContext

__author__ = 'nickleo'

from django.core.files.storage import default_storage

from django.views.generic.base import TemplateView
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth import authenticate, login, logout
from django.template.loader import get_template
import jsonpickle as json
import tree_utils


class FakeField(object):
    storage = default_storage


def all(request):
    list,action_alert= tree_utils.tree()
    return HttpResponse(json.encode(list))


